<form class="am-form query-form" data-am-validator id="formtable">
    <input type="hidden" name="id"  id="price_id" value="{{.m.Id}}">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">商品价格修改</div>
            <div class="widget-function am-fr">
                <button type="submit" class="am-btn am-btn-danger" id="submitBtn"><i class="am-icon-check"></i> 保存</button>
            </div>
        </div>
        <div class="widget-body  am-fr">

            <div class="am-g doc-am-g">
                <div class="am-u-sm-6">
                    <label class="am-u-sm-4 am-form-label"><span class="am-text-danger">*</span> 批发价格</label>
                    <div class="am-u-sm-8"><input type="number" name="TradePrice" id="TradePrice" value="{{.m.TradePrice}}" required></div>
                </div>
                <div class="am-u-sm-6">
                    <label class="am-u-sm-4 am-form-label"><span class="am-text-danger">*</span> 销售价格</label>
                    <div class="am-u-sm-8"><input type="number" name="SuggestedPrice" id="SuggestedPrice" value="{{.m.SuggestedPrice}}" required></div>
                </div>
            </div>
            <div class="am-g doc-am-g">
                <div class="am-u-sm-6">
                    <label class="am-u-sm-4 am-form-label">定制批发价格</label>
                    <div class="am-u-sm-8"><input type="number" name="CustomTradePrice" id="CustomTradePrice" value="{{.m.CustomTradePrice}}" ></div>
                </div>
                <div class="am-u-sm-6">
                    <label class="am-u-sm-4 am-form-label">定制销售价格</label>
                    <div class="am-u-sm-8"><input type="number" name="CustomSuggestedPrice" id="CustomSuggestedPrice" value="{{.m.CustomSuggestedPrice}}" ></div>
                </div>
            </div>
            <div class="am-g doc-am-g">
                <div class="am-u-sm-6">
                    <label class="am-u-sm-4 am-form-label">公共价格</label>
                    <div class="am-u-sm-8">
                        <label class="am-checkbox" style="text-align: left; margin-top: 0;">
                            <input type="checkbox" name="is_public" id="is_public" value="1" data-am-ucheck {{  if eq .m.IsPublic 1 }} checked {{end}} > 设为公共价格
                        </label>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>